﻿// 文件路径：AyuBookmark.Common/Interfaces/IMessageProcessor.cs
using System.Threading;
using System.Threading.Tasks;

namespace AyuBookmark.Common.Interfaces
{
    /// <summary>
    /// 消息处理接口
    /// </summary>
    public interface IMessageProcessor
    {
        /// <summary>
        /// 处理接收到的消息
        /// </summary>
        /// <param name="message">输入消息</param>
        /// <param name="cancellationToken">取消令牌</param>
        /// <returns>处理结果</returns>
        Task<string> ProcessAsync(string message, CancellationToken cancellationToken = default);
    }
}